package jp.co.piratealliance.pirateAllianceWeb.web.action.com;

import jp.co.piratealliance.pirateAllianceWeb.common.base.BaseAction;
import jp.co.piratealliance.pirateAllianceWeb.dto.com.CountryInfoDto;
import jp.co.piratealliance.pirateAllianceWeb.service.com.UserService;

/**
 * copyright pirate alliance team 2014
 *
 * @author lunxing
 */

public class CountryAction extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private UserService userService;

	private CountryInfoDto countryInfoDto;
	
	private String country_id;

	public String getCountryInfoById()
	{
		this.countryInfoDto = this.userService.getServiceCountryInfo(this.country_id);
		return SUCCESS;
	}

	/**
	 * @return the userService
	 */
	public UserService getUserService() {
		return userService;
	}

	/**
	 * @param userService the userService to set
	 */
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	/**
	 * @return the countryInfoDto
	 */
	public CountryInfoDto getCountryInfoDto() {
		return countryInfoDto;
	}

	/**
	 * @param countryInfoDto the countryInfoDto to set
	 */
	public void setCountryInfoDto(CountryInfoDto countryInfoDto) {
		this.countryInfoDto = countryInfoDto;
	}

	/**
	 * @return the country_id
	 */
	public String getCountry_id() {
		return country_id;
	}

	/**
	 * @param country_id the country_id to set
	 */
	public void setCountry_id(String country_id) {
		this.country_id = country_id;
	}
	
}
